home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / ENET.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  3.4 KB  |  130 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ENET.a
  3. ;
  4. ;    Contains:    Ethernet Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1990-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__ENET__') = 'UNDEFINED' THEN
  18. __ENET__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  24.     include 'OSUtils.a'
  25.     ENDIF
  26.  
  27.  
  28. ENetSetGeneral                    EQU        253                    ;Set "general" mode
  29. ENetGetInfo                        EQU        252                    ;Get info
  30. ENetRdCancel                    EQU        251                    ;Cancel read
  31. ENetRead                        EQU        250                    ;Read
  32. ENetWrite                        EQU        249                    ;Write
  33. ENetDetachPH                    EQU        248                    ;Detach protocol handler
  34. ENetAttachPH                    EQU        247                    ;Attach protocol handler
  35. ENetAddMulti                    EQU        246                    ;Add a multicast address
  36. ENetDelMulti                    EQU        245                    ;Delete a multicast address
  37.  
  38. EAddrRType                        EQU        'eadr'                ;Alternate address resource type
  39.  
  40.  
  41. ; typedef EParamBlock *                    EParamBlkPtr
  42.  
  43. EParamBlock                RECORD 0
  44. qLink                     ds.l    1                ; offset: $0 (0)        ; General EParams
  45. qType                     ds.w    1                ; offset: $4 (4)        ; queue type
  46. ioTrap                     ds.w    1                ; offset: $6 (6)        ; routine trap
  47. ioCmdAddr                 ds.l    1                ; offset: $8 (8)        ; routine address
  48. ioCompletion             ds.l    1                ; offset: $C (12)        ; completion routine
  49. ioResult                 ds.w    1                ; offset: $10 (16)        ; result code
  50. ioNamePtr                 ds.l    1                ; offset: $12 (18)        ; ->filename
  51. ioVRefNum                 ds.w    1                ; offset: $16 (22)        ; volume reference or drive number
  52. ioRefNum                 ds.w    1                ; offset: $18 (24)        ; driver reference number
  53. csCode                     ds.w    1                ; offset: $1A (26)        ; Call command code
  54. eProtType                 ds.w    1                ; offset: $1C (28)        ; Ethernet protocol type
  55. ePointer                 ds.l    1                ; offset: $1E (30)        ; No support for PowerPC code
  56. eBuffSize                 ds.w    1                ; offset: $22 (34)        ; buffer size
  57. eDataSize                 ds.w    1                ; offset: $24 (36)        ; number of bytes read
  58.                          ORG 28
  59. eMultiAddr                 ds.b    6                ; offset: $1C (28)        ; Multicast Address
  60.                          ORG 38
  61. sizeof                     EQU *                    ; size:   $26 (38)
  62.                         ENDR
  63. ;
  64. ; pascal OSErr EWrite(EParamBlkPtr thePBptr, Boolean async)
  65. ;
  66.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  67.         IMPORT_CFM_FUNCTION EWrite
  68.     ENDIF
  69.  
  70. ;
  71. ; pascal OSErr EAttachPH(EParamBlkPtr thePBptr, Boolean async)
  72. ;
  73.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  74.         IMPORT_CFM_FUNCTION EAttachPH
  75.     ENDIF
  76.  
  77. ;
  78. ; pascal OSErr EDetachPH(EParamBlkPtr thePBptr, Boolean async)
  79. ;
  80.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  81.         IMPORT_CFM_FUNCTION EDetachPH
  82.     ENDIF
  83.  
  84. ;
  85. ; pascal OSErr ERead(EParamBlkPtr thePBptr, Boolean async)
  86. ;
  87.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  88.         IMPORT_CFM_FUNCTION ERead
  89.     ENDIF
  90.  
  91. ;
  92. ; pascal OSErr ERdCancel(EParamBlkPtr thePBptr, Boolean async)
  93. ;
  94.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  95.         IMPORT_CFM_FUNCTION ERdCancel
  96.     ENDIF
  97.  
  98. ;
  99. ; pascal OSErr EGetInfo(EParamBlkPtr thePBptr, Boolean async)
  100. ;
  101.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  102.         IMPORT_CFM_FUNCTION EGetInfo
  103.     ENDIF
  104.  
  105. ;
  106. ; pascal OSErr ESetGeneral(EParamBlkPtr thePBptr, Boolean async)
  107. ;
  108.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  109.         IMPORT_CFM_FUNCTION ESetGeneral
  110.     ENDIF
  111.  
  112. ;
  113. ; pascal OSErr EAddMulti(EParamBlkPtr thePBptr, Boolean async)
  114. ;
  115.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  116.         IMPORT_CFM_FUNCTION EAddMulti
  117.     ENDIF
  118.  
  119. ;
  120. ; pascal OSErr EDelMulti(EParamBlkPtr thePBptr, Boolean async)
  121. ;
  122.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  123.         IMPORT_CFM_FUNCTION EDelMulti
  124.     ENDIF
  125.  
  126.  
  127.  
  128.     ENDIF ; __ENET__ 
  129.  
  130.